package rpcslotgamelogic

import (
	"context"

	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/dao/model/slot_game"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/internal/svc"
	"gitee.com/liuxuezhan/ar-platform/assets-rpc/rpc"
	"github.com/zeromicro/go-zero/core/logx"
)

type SlotGameStartLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewSlotGameStartLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SlotGameStartLogic {
	return &SlotGameStartLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *SlotGameStartLogic) SlotGameStart(in *rpc.SlotGameStartReq) (*rpc.SlotGameStartRes, error) {
	m := slot_game.NewUserSlot(l.ctx, l.svcCtx)
	return m.Start(in)
}
